﻿@model Resto.CostControl.Core.Models.SysSettings.EnumItem
@{
    ViewBag.Title = "枚举子项管理";
    Layout = "~/Views/Shared/_LayoutForm.cshtml"; 
}
<style type="text/css">
    .pageFormContent p
    {
        width: auto;
    }
</style>
@using (Html.AjaxBeginForm("SaveEnumItemInfo"))
{ 
    <div class="pageFormContent">
        @Html.HiddenFor(model => model.Id)
        @if (string.IsNullOrEmpty(Model.ParentId))
        {
            @Html.HiddenFor(model => model.TypeId)
            @Html.DWZDropDownListFor(model => model.TypeCode, "dictype", new { style = "width:348px" }).ReadOnly().Required()
        }
        else
        { 
            @Html.HiddenFor(model => model.ParentId)
            @Html.HiddenFor(model => model.ParentCode)
            @Html.DWZTextBoxFor(m => m.ParentName, new { style = "width:340px" }).Disable();
        }
        @Html.DWZTextBoxFor(model => model.EnumCode, new { style = "width:340px" }).Required()
        @Html.DWZTextBoxFor(model => model.EnumName, new { style = "width:340px" }).Required()
        @Html.DWZTextBoxFor(model => model.FirstChar, new { style = "width:340px" }).Required()
        @Html.DWZTextBoxFor(model => model.SeqNo, new { style = "width:340px" }).Required()
        @Html.DWZTextAreaFor(model => model.Remark, new { style = "width:340px" })
    </div>
}
@Html.FormBar()
